<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tbody>
		<tr>
			<td colspan="3">
				<div class="blue-text16" style="margin: 0px;">
					<s:text name="manageBankAccount.para1"></s:text>
				</div>
			</td>
			<td>
				<a href="/printeverywhere/addBankAccount.htm"> <b>
				<s:text name="manageBankAccount.addbankaccount"></s:text> </b> </a>
			</td>
		</tr>
	</tbody>
</table>
<div class="header-separator-bg" style="margin: 10px 5px 17px 0px;"></div>
<div class="common-text" style="margin: 0px 0px 10px;">
	<table width="100%" height="249">
		<tbody>
			<tr>
				<td>
					<s:actionmessage cssClass="error-text"/>
					<s:actionerror cssClass="error-text"/>
					<s:fielderror cssClass="error-text"></s:fielderror>
				</td>
			</tr>
			<tr>
				<td colspan="2" width="100%" class="common-text">
					<s:text name="manageBankAccount.para2"></s:text>
				</td>
			</tr>
			<tr>
				<td width="100%" class="common-text">
					<b><s:text name="manageBankAccount.defaultbankaccount"></s:text> </b> <s:property value="user.bankaccount.bankAccountNumber"/>
				</td>
			</tr>
			<tr>
				<td width="100%" class="common-text">
					<s:text name="manageBankAccount.para3"></s:text>
				</td>
			</tr>
			<tr>
				<td width="100%">
					<s:form onsubmit="return true;" action="defaultBankAccount.htm"
						method="post" theme="simple">
						<table border="0" cellpadding="0" cellspacing="0">
							<tbody>
								<tr>
									<td>
										<s:select list="useraccounts" name="defaultBankId"
											 value="%{#session.user.bankaccount.accountId}" listKey="accountId"
											listValue="bankName" theme="simple"></s:select>
									</td>
									<td class="btn-grey-left1"></td>
									<td class="btn-grey-middle1">
									 <s:submit value="%{getText('manageBankAccount.SetDefaultAccount')}" cssClass="submit-btn-common"></s:submit>
									</td>
									<td class="btn-grey-right1"></td>
								</tr>
							</tbody>
						</table>
					</s:form>
				</td>
			</tr>

			<tr>
				<td width="100%" class="common-text">
					<b><s:text name="manageBankAccount.deletebankaccount"></s:text> </b>
				</td>
			</tr>
			<tr>
				<td width="100%" class="common-text">
					<s:text name="manageBankAccount.para4"></s:text>
				</td>

			</tr>
			<tr>
				<td width="100%">

					<s:form onsubmit="return wantToDelete('Do you want to delete this Bank Account?');" action="deleteBankAccount.htm"
						method="post">
						<table border="0" cellpadding="0" cellspacing="0">
							<tbody>
								<tr>
									<td>
										<s:select list="useraccounts" name="defaultBankId"
											 value="%{#session.user.bankaccount.accountId}" listKey="accountId"
											listValue="bankName" theme="simple"></s:select>
									</td>
									<td class="btn-grey-left1"></td>
									<td class="btn-grey-middle1">
										<s:submit value="%{getText('manageBankAccount.Delete')}" cssClass="submit-btn-common" theme="simple" ></s:submit>
									</td>
									<td class="btn-grey-right1"></td>
								</tr>
							</tbody>
						</table>
					</s:form>
				</td>
			</tr>
		</tbody>
	</table>